<template>
  <div>
      <div>
          <el-input
            v-model="pos.name"
          ></el-input>
      </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            pos:{
                name:''
            },
            positions:[]
        }
    },
    mounted() {
        this.initPositions()
    },
    methods:{
        initPositions(){
            this.getRequest('/system/basic/pos/').then(resp =>{
                if(resp){
                    this.positions = resp
                }
            })
        },
        showEditView(index,data){
            Object.assign(this.updatePos,data)
            this.updatePos.createDate = ''
            this.dislogVisible = true
        }
    }
}
</script>

<style>

</style>